#!/bin/bash

source ~/anaconda/envs/bjorn/bin/activate  bjorn

libreoffice "-env:UserInstallation=file:///tmp/LibO_Conversion" --headless --invisible --convert-to pdf  ./docs/cookbook/pydna_cookbook_*.odt

libreoffice "-env:UserInstallation=file:///tmp/LibO_Conversion" --headless --invisible --convert-to docx ./docs/cookbook/pydna_cookbook_*.odt

cd $(cd -P -- "$(dirname -- "$0")" && pwd -P)

#python setup.py sdist --formats=gztar,zip
#python setup.py bdist_wheel
#python setup.py bdist_egg
#wine C:/Python27/python.exe setup.py build --plat-name=win32 bdist_wininst
#wine C:/Python27/python.exe setup.py build --plat-name=win-amd64 bdist_wininst


python setup.py register

python setup.py sdist --formats=gztar upload
python setup.py sdist --formats=zip upload
python setup.py bdist_egg upload
python setup.py bdist_wheel upload

wine C:/Python27/python.exe setup.py build --plat-name=win32     bdist_wininst upload
wine C:/Python27/python.exe setup.py build --plat-name=win-amd64 bdist_wininst upload



